#!/usr/bin/env python
#-*-coding:utf-8-*-
import time
print(time.time()) #获取时间，从1997---
print(time.strftime('%Y',time.localtime()))
print(time.localtime(time.time()))
print(time.mktime(time.strptime("2018"," %Y")))
a = 'Sat Mar 28 22:24:24 2009'
b = time.mktime(time.strptime(a,"%a %b %d %H:%M:%S %Y"))
print(time.localtime(b))

